<template>
  <div class="editor-box">
    <app-text-editor v-model="modelValue" />
  </div>
</template>
<script lang="ts" setup>
import { ref } from 'vue'

const modelValue = ref('')
// 模拟异步数据
setTimeout(() => {
  modelValue.value = '<h1> hello world <h1/>'
}, 2000)
</script>
<style lang="scss" scope>
.editor-box {
  margin-top: 40px;
}
.el-col-12 {
  max-width: 100%;
}
.el-menu {
  width: 200px;
  border-right: none;
}
</style>
